﻿@model IEnumerable<RonYee.Models.File>

@{
    ViewBag.Title = "文件列表";
    Layout = "~/Views/Shared/_LayoutOfSecondPage.cshtml";
}

<div class="box_padding">
    <h3><i class="ui-icons"></i>文件列表</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg">
      <div class="box_padding">
       <div class="border_line">
          <p>
             <a href="@Url.Action("Create")"><input class="Button1 ui-icons" type="button" value="添加文件" name="Create" /></a>
          </p>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                    <th class="tdName">
                        选择
                    </th>
                    <th class="tdName">
                        文件名
                    </th>
                    <th class="tdName">
                        编辑时间
                    </th>
                    <th class="tdName">
                        编辑人
                    </th>
                    <th class="tdName">
                        所属类别
                    </th>
                    <th class="tdName">
                        编辑
                    </th>
                    <th class="tdName">
                        详细
                    </th>
                    <th class="tdName">
                        删除
                    </th>
                </tr>

            @foreach (var item in Model) {
                <tr>
                    <td class="tdData">
                        <input type="checkbox" id="CheckId" value="@item.FileId" />
                    </td>
                    <td class="tdData">
                        @Html.DisplayFor(modelItem => item.FileName)
                    </td>
                    <td class="tdData">
                        @Html.DisplayFor(modelItem => item.AddTime)
                    </td>
                    <td class="tdData">
                        @Html.DisplayFor(modelItem => item.EditUser)
                    </td>
                    <td class="tdData">
                        @Html.DisplayFor(modelItem => item.FileType1)
                    </td>
                    <td class="tdData">
                        @Html.ActionLink("编辑", "Edit", new { id=item.FileId })
                    </td>
                    <td class="tdData">
                        @Html.ActionLink("详细", "Details", new { id=item.FileId })
                    </td>
                    <td class="tdData">
                        @Html.ActionLink("删除", "Delete", new { id=item.FileId })
                    </td>
                </tr>
            }
              </tbody>
            </table> 
       </div>
      </div>
    </div>
    <div class="box_down ui-icons"></div>
</div>
<div class="line_top">
</div>




